﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandPattern
{
    public abstract class BaseCommand
    {
        protected Document _document;
        public void SetDocument(Document document)
        {
            _document = document;
        }

        protected IExecuteCommand _executeCommand;
        public void SetExecuteCommand(IExecuteCommand  executeCommand)
        {
           _executeCommand = executeCommand;
        }

        public abstract void Execute();
    }
}
